<script>
$(document).ready(function() {
    $('#list_fee').dataTable( {
        "aLengthMenu": [[10,25,50, 100, -1], [10,25,50,100, "All"]],
		"sPaginationType": "full_numbers",
		"oLanguage": {
            "sLengthMenu": "Menampilkan _MENU_ data",
            "sZeroRecords": "Belum ada data User yang tersimpan",
            "sInfo": "",
            "sInfoEmpty": "",
            "sInfoFiltered": "(Hasil filter dari _MAX_ yang didapat)"
        }
    } );
} );
</script>
<?php
$data['cur_parent_menu']='master';
$data['cur_selected_menu']='kota';
$this->load->view('template/menu_view',$data);
?>
<br/><br/><br/><br />
<div class="gridcenter" style="font-family: 'open sans',arial,sans-serif;font-size: 18px;font-weight:bold;color:#666666;">Ubah Kota User</div>
<br />
<script>
	$(document).ready(function() {
	$("#form_edit_kota_user").validate({
		rules: {
			fee: "required"
		},
		messages: {
			fee: " *Nilai Fee Supir harus diisi"
		}});
	});
</script>
<div class="demo_jui datagrid gridcenter">
<form id="form_edit_kota_user" method="post" action="<?php echo KOTA ?>process_edit_kota_user/<?php echo $user_id?>">
<table width="700">
	<tr>
		<td width="150">
			Kota
		</td>
		<td>:
			<?php
				for($i=0;$i<count($daftar_asal_tujuan);$i++)
                        {
                            $opt[$daftar_asal_tujuan[$i]['NamaKota']][$daftar_asal_tujuan[$i]['Kode']] = $daftar_asal_tujuan[$i]['Nama'];
                        }
                        echo form_dropdown('kota', $opt, $kode_kota);
			?>
		</td>
	</tr>
	<tr>
		<td>
			Nama
		</td>
		<td>
                    : <input type="text" name="fee" readonly value="<?php echo $nama_user?>"/>
                    <input type="hidden" name="id" value="<?php echo $user_id?>">
		</td>
	</tr>
	<tr>
		<td colspan="2">
		&nbsp;
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" value="Ubah"/>
			<input type="button" value="Kembali" onclick="location.href='<?php echo FEE ?>'"/>
		</td>
	</tr>
</table>
</form>
</div>